﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace MethodWorx.CMS.Workflow.SetAttribute
{
    [Serializable]
    public class SetAttributeConfiguration : IWorkflowConfiguration
    {
        [Required]
        public string Variable { get; set; }
        [Required]
        public string Attribute { get; set; }
        [Required]
        public string Value { get; set; }

        public string GetDescriptionSummary()
        {
            return "Set attribute: " + this.Variable + "." + this.Attribute + " = " + this.Value;
        }
    }
}
